<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>EgretScene3D</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui, target-densitydpi=device-dpi" />
	<meta name="screen-orientation" content="landscape">
	<meta name="x5-orientation" content="landscape">
	<meta name="full-screen" content="true">
	<meta name="screen-orientation" content="landscape">
	<meta name="x5-fullscreen" content="true">
	<meta name="360-fullscreen" content="true">
	<meta name="renderer" content="webkit">
	<meta name="browsermode" content="application">
	<meta name="x5-page-mode" content="app">
	<meta name="msapplication-tap-highlight" content="no">
	<meta name="HandheldFriendly" content="true">

    <style>
		/*html, body {*/
			/*-ms-touch-action: none;*/
			/*background: #000000;*/
			/*padding: 0;*/
			/*border: 0;*/
			/*margin: 0;*/
			/*height: 100%;*/
			/*overflow: hidden;*/
		/*}*/
		/*div, canvas {*/
			/*display:block;*/
			/*position:absolute;*/
			/*margin: 0 auto;*/
			/*padding: 0;*/
			/*border: 0;*/
		/*}*/

		html, body {
			-ms-touch-action: none;
			background: #373737;
			padding: 0;
			border: 0;
			margin: 0;
			height: 100%;
		}
    </style>

    <!--这个标签为通过egret提供的第三方库的方式生成的 javascript 文件。删除 modules_files 标签后，库文件加载列表将不会变化，请谨慎操作！-->
    <!--modules_files_start-->
	<script egret="lib" src="libs/modules/egret/egret.js" src-release="libs/modules/egret/egret.min.js"></script>
	<script egret="lib" src="libs/modules/egret/egret.web.js" src-release="libs/modules/egret/egret.web.min.js"></script>
	<script egret="lib" src="libs/modules/eui/eui.js" src-release="libs/modules/eui/eui.min.js"></script>
	<script egret="lib" src="libs/modules/res/res.js" src-release="libs/modules/res/res.min.js"></script>
	<script egret="lib" src="libs/modules/tween/tween.js" src-release="libs/modules/tween/tween.min.js"></script>
	<script egret="lib" src="libs/modules/game/game.js" src-release="libs/modules/game/game.min.js"></script>
	<script egret="lib" src="libs/modules/game/game.web.js" src-release="libs/modules/game/game.web.min.js"></script>
	<script egret="lib" src="libs/modules/dragonBones/dragonBones.js" src-release="libs/modules/dragonBones/dragonBones.min.js"></script>
	<script egret="lib" src="libs/modules/rm/rm.min.js" src-release="libs/modules/rm/rm.min.js"></script>
	<script egret="lib" src="libs/modules/stats/stats.js" src-release="libs/modules/stats/stats.js"></script>
	<script egret="lib" src="libs/modules/egret3d/egret3d.js" src-release="libs/modules/egret3d/egret3d.min.js"></script>
	<!--modules_files_end-->

	<!--这个标签为不通过egret提供的第三方库的方式使用的 javascript 文件，请将这些文件放在libs下，但不要放在modules下面。-->
	<!--other_libs_files_start-->
	<!--other_libs_files_end-->

    <!--这个标签为不通过egret提供的第三方库的方式使用的 javascript 文件，请将这些文件放在libs下，但不要放在modules下面。-->
    <!--other_libs_files_start-->
    <!--other_libs_files_end-->

    <!--这个标签会被替换为项目中所有的 javascript 文件。删除 game_files 标签后，项目文件加载列表将不会变化，请谨慎操作！-->
    <!--game_files_start-->
	<script egret="game" src="bin-debug/event/EventController.js"></script>
	<script egret="game" src="bin-debug/event/GameConfigEvent.js"></script>
	<script egret="game" src="bin-debug/event/GameEvent.js"></script>
	<script egret="game" src="bin-debug/event/GameSocketEvent.js"></script>
	<script egret="game" src="bin-debug/event/PlayerEvent.js"></script>
	<script egret="game" src="bin-debug/game/ConfigManager.js"></script>
	<script egret="game" src="bin-debug/game/control/SceneControl.js"></script>
	<script egret="game" src="bin-debug/util/HtmlTextUtil.js"></script>
	<script egret="game" src="bin-debug/game/data/NoticeTxtString.js"></script>
	<script egret="game" src="bin-debug/GameConfig.js"></script>
	<script egret="game" src="bin-debug/loader/AssetAdapter.js"></script>
	<script egret="game" src="bin-debug/loader/MainLoader.js"></script>
	<script egret="game" src="bin-debug/loader/ThemeAdapter.js"></script>
	<script egret="game" src="bin-debug/Main.js"></script>
	<script egret="game" src="bin-debug/ui/AppConstant.js"></script>
	<script egret="game" src="bin-debug/ui/BaseDisplayApp.js"></script>
	<script egret="game" src="bin-debug/ui/component/notice/BottomNoticeUI.js"></script>
	<script egret="game" src="bin-debug/ui/component/notice/NoticeController.js"></script>
	<script egret="game" src="bin-debug/ui/component/notice/NoticeTxtUI.js"></script>
	<script egret="game" src="bin-debug/ui/component/notice/NoticeTypeEnum.js"></script>
	<script egret="game" src="bin-debug/ui/component/notice/TopNoticeUI.js"></script>
	<script egret="game" src="bin-debug/ui/component/UICountDown.js"></script>
	<script egret="game" src="bin-debug/ui/component/UITipsLayer.js"></script>
	<script egret="game" src="bin-debug/ui/UIController.js"></script>
	<script egret="game" src="bin-debug/ui/UILoading.js"></script>
	<script egret="game" src="bin-debug/ui/UISharedController.js"></script>
	<script egret="game" src="bin-debug/util/ByteArrayUtil.js"></script>
	<script egret="game" src="bin-debug/util/DateUtil.js"></script>
	<script egret="game" src="bin-debug/util/FPSCounter.js"></script>
	<script egret="game" src="bin-debug/util/md5.js"></script>
	<script egret="game" src="bin-debug/util/ResourceUtil.js"></script>
	<script egret="game" src="bin-debug/world/AxisMesh.js"></script>
	<script egret="game" src="bin-debug/world/CameraController.js"></script>
	<script egret="game" src="bin-debug/world/ControllerBase.js"></script>
	<script egret="game" src="bin-debug/world/HoveController.js"></script>
	<script egret="game" src="bin-debug/world/LightControl.js"></script>
	<script egret="game" src="bin-debug/world/UVSheetMethod.js"></script>
	<script egret="game" src="bin-debug/world/WorldCanvas.js"></script>
	<script egret="game" src="bin-debug/world/WorldControl.js"></script>
	<!--game_files_end-->

	<script>
		 function checkRotation(e){
			var w = document.documentElement.clientWidth;
			var h = document.documentElement.clientHeight;
			var tipDiv=document.getElementById("tipDiv");
			var gameDiv=document.getElementById("gameDiv");
			if(w<h || window.orientation==180||window.orientation==0){
				//alert("请在系统设置里打开屏幕旋转，并在横屏状态下玩游戏！");
				gameDiv.style.display="none";
				tipDiv.style.display="block";
				tipDiv.style.textAlign="center";
				tipDiv.style.width=w+"px";
				tipDiv.style.height=h+"px";
			}
			if(w>h || window.orientation==90||window.orientation==-90){
				gameDiv.style.display="block";
				tipDiv.style.display="none";
			}
		}
		 window.addEventListener("orientationchange", checkRotation);
		 window.addEventListener("resize", checkRotation);
	</script>
</head>
<body onload="checkRotation(null)">
<div id='gameDiv' style="position:relative;margin: auto;width: 100%;height: 100%;" class="egret-player"
     data-entry-class="Main"
     data-orientation="landscape"
     data-scale-mode="showAll"
     data-frame-rate="30"
	 data-content-width="1280"
	 data-content-height="720"
     data-show-paint-rect="false"
     data-multi-fingered="2"
     data-show-fps="false" data-show-log="false"
     data-log-filter="" data-show-fps-style="x:0,y:0,size:30,textColor:0x0094ff,bgAlpha:0.9">
</div>
<div id="tipDiv" style="color: #ffffff;display:none;text-align:center;">
	<span style="display:block;margin: 20px;font-size: 25px ">请在系统设置里打开屏幕旋转，并在横屏状态下玩游戏！</span><br/>
	<img src="resource/rotateBg.png" >
</div>
<div style="color: #ffffff;display:block;text-align:center;">
	<span style="display:block;margin: 1px;font-size: 1px "></span>
</div>
<script>
	egret.runEgret({renderMode: "canvas"});
</script>

</body>
</html>
